export const useTokenM = function() {
    const tokenKey = "token"
    // 增
    const setToken = (token: string) => sessionStorage.setItem(tokenKey, token)
    // 取
    const getToken = () => sessionStorage.getItem(tokenKey)
    // 删
    const deleteToken = () => sessionStorage.deleteItem(tokenKey)
    return {
        setToken,
        getToken,
        deleteToken
    }
}